home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act3 / 00332.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  686 b   |  16 lines

  1. on crumpet
  2.   set buggrid to [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
  3.   repeat with yyy = 1 to 7
  4.     repeat with xxx = 1 to 10
  5.       set the locH of sprite (4 + xxx) to (xxx * 64) - 32
  6.       set the locV of sprite (4 + xxx) to (yyy * 50) - 25
  7.       set the castNum of sprite (4 + xxx) to the number of cast ("run" & getAt(getAt(buggrid, yyy), xxx))
  8.     end repeat
  9.     updateStage()
  10.     set ptime to the timer
  11.     repeat while (the timer - ptime) < 60
  12.       updateStage()
  13.     end repeat
  14.   end repeat
  15. end
  16.